#!/bin/bash +x

#function usage
usage()
{
  echo "usage: rmc  [class_name] [Project_DIR]"
  exit 1
}


source ${OOBC_HOME}/shared/oobc.env

if [ -n "$1" ]; then
  CLASS_NAME=$1
else
  echo "class name missing"
  usage
fi
	
if [ -n "$2" ]; then
  ROOT_DIR=$2
else
  ROOT_DIR=`pwd`	
  echo $ROOT_DIR	
fi

rm -r ${ROOT_DIR}/tests/${CLASS_NAME}

rm ${ROOT_DIR}/include/${CLASS_NAME}.h

rm ${ROOT_DIR}/src/${CLASS_NAME}.cc

